﻿<navigation:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:navigation="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Navigation"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:my="clr-namespace:Coding4Fun.Cannon.Phone.Controls"
    xmlns:System="clr-namespace:System;assembly=mscorlib" 
    x:Class="Coding4Fun.Cannon.Phone.MainPage"
    mc:Ignorable="d" d:DesignHeight="480" d:DesignWidth="800" Loaded="PhoneApplicationPage_Loaded">
	<navigation:PhoneApplicationPage.Resources>

		<Storyboard x:Name="StatusViewDown">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="statusView1">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="480"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
        <Storyboard x:Name="DriveViewDown">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="driveView1">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="480"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Name="AimViewDown">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="aimView1">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="480"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Name="FireViewDown">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="fireView1">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="480"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>


    </navigation:PhoneApplicationPage.Resources>


    <Grid x:Name="LayoutRoot" Background="{StaticResource PhoneBackgroundBrush}">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="640" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <Grid Grid.Column="0">
            <Canvas Height="480" Width="640">
                <my:StatusView x:Name="statusView1" Margin="0,-480,0,0" Visibility="Visible" Canvas.Top="0" RenderTransformOrigin="0.5,0.5" >
                    <my:StatusView.RenderTransform>
                        <CompositeTransform/>
                    </my:StatusView.RenderTransform>
                </my:StatusView>
                <my:DriveView x:Name="driveView1" Margin="0,-480,0,0" Visibility="Collapsed" RenderTransformOrigin="0.5,0.5" >
                    <my:DriveView.RenderTransform>
                        <CompositeTransform/>
                    </my:DriveView.RenderTransform>
                </my:DriveView>
                <my:AimView x:Name="aimView1" Margin="0,-480,0,0" Visibility="Collapsed" RenderTransformOrigin="0.5,0.5" >
                	<my:AimView.RenderTransform>
                		<CompositeTransform/>
                	</my:AimView.RenderTransform>
                </my:AimView>
                <my:FireView x:Name="fireView1" Margin="0,-480,0,0" Visibility="Collapsed" RenderTransformOrigin="0.5,0.5">
                	<my:FireView.RenderTransform>
                		<CompositeTransform/>
                	</my:FireView.RenderTransform>
                </my:FireView>
            </Canvas>
        </Grid>

        <!-- Navigation Column-->
        <Grid Grid.Column="1">
            <my:NavigationControl x:Name="navigationControl1" ButtonNavigationChanged="navigationControl1_ButtonNavigationChanged" />
        </Grid>
    </Grid>
</navigation:PhoneApplicationPage>